home *** CD-ROM | disk | FTP | other *** search
- 10 rem *** glide - effekt
- 11 :
- 12 :n1 =7492 :rem anfangsnote
- 13 :n2 =4455 :rem zielnote
- 14 :z =200 :rem zaehler (level)
- 19 :
- 20 rem * ton einschalten
- 21 :
- 22 s=54272:pokes+4,8:pokes+24,15 :rem volle lautstaerke
- 23 pokes+6,248:pokes+5,0:pokes+4,33 :rem adsr und saegezahn-wellenform poken
- 29 :
- 40 rem * glide !!
- 41 :
- 42 rem start
- 43 :
- 44 tn=n1 :rem anfangstonhoehe setzen
- 45 :
- 50 rem schleife
- 51 :
- 52 pokes+1,tn/256:pokes,tnand255 :rem tonhaehe in sid poken
- 53 ifn2<tnthentn=tn-z:iftn<n2then70:rem zielton < tonhoehe: tonhoehe vermindern
- 54 ifn2>tnthentn=tn+z:iftn>n2then70:rem zielton > tonhoehe: tonhoehe erhoehen.
- 55 goto52 :rem ...das ganze solange, bis ziel erreicht.
- 69 :
- 70 pokes+1,n2/256:pokes,n2and255 : rem genaue zieltonhoehe poken
-